<template>
	        <h2 >我的课程</h2>
			<div>
				<table border="1">
					<tr>
						<th>科任老师编号</th>
						<th>科任老师</th>
						<th>所在班级编号</th>
						<th>所在班级</th>
						<th>课程编号</th>
						<th>课程名称</th>
					</tr>
					<tr v-for="c in data.tasks">
						<td align="center" >{{c.user.uid}}</td>
						<td align="center">{{c.user.uname}}</td>
						<td align="center">{{c.clz.clzno}}</td>
						<td align="center">{{c.clz.clzname}}</td>
						<td align="center">{{c.course.cno}}</td>
						<td align="center">{{c.course.cname}}</td>
						
					</tr>
				</table>
				
				
			</div>
			   
</template>

<script setup>
		import {ref,reactive,onMounted }from 'vue';
import { $get } from '../../ajax';
	const data= reactive({tasks:[]})
	onMounted(()=>{
		$get("/api/fore/stu/findMyCourse").then((resp)=>{
		   data.tasks=resp.data.data;	
		})	
	})
</script>

<style>
</style>
